<template>
	<view style="padding: 20px;">
		<button @click="onlog()">Console.log</button>
		<button @click="debug()">Console.debug</button>
		<button @click="info()">Console.info</button>
		<button @click="warn()">Console.warn</button>
		<button @click="error()">Console.error</button>
	</view>
</template>
	
<script>
	export default {
		date(){
			return{
				myname:"kjw",
				title:"api"
			}
		},
		methods: {
			onlog() {
				// console.log("clog+enter");
				
				console.log("onlog()",this.myname);
			},
			debug() {
				console.log("ondebug");
			},
			info() {
				console.log("oninfo");
			},
			warn() {
				console.log("onwarn");
				if (true) {
					console.log("true");
				} else {
					console.log("出错了");
				}
			},
			error() {
				console.log("onerror");
			},
		}
	}
</script>

<style>
</style>